package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.*;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

import java.util.List;

public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    PageResult selectEmployeeList(EmployeePageQueryDTO dto);

    Employee selectEmployeeById(Long id);

    void insertEmployee(EmployeeAddDto dto);

    void editEmployee(updateEmployeeDto dto);

    void updateEmployeeStatus(Integer status,Long id);

    void editPassword(EditPasswordDto dto);
}
